package com.yc.web.DTO;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class OrdersDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderId ;// '订单id',
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId ;// '用户id',
    @JsonSerialize(using = ToStringSerializer.class)
    private Long addressId ;//'收货地址id',
    private Integer  paymentType ;//'支付方式(1-支付宝 2-微信 3-银行卡)',
    private LocalDateTime paymentTime ;// '支付时间',
    private Integer orderStatus ; // '状态(0-已取消 1-待付款 2-待发货 3-待收货 4-待评价 5-退款/售后) ',
    private LocalDateTime shippingTime ; // '发货时间',
    private LocalDateTime updateTime ; // '最新操作时间',
    private String remark ; // '备注'

    private Integer itemCount; //商品的总数量
    private Double totalAmount; //订单的总金额
    // 订单商品明细
    private List<OrderItemsDTO> items; // 订单商品明细

    @JsonSerialize(using = ToStringSerializer.class)
    private Long redPacketRecordId ; // '使用的红包领取记录ID',

    private Double redPacketDiscountAmount ; // '红包优惠金额',
}